<!DOCTYPE html>

<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="user-scalable=no, width=device-width"/>
        <link rel="stylesheet" href="css/jquery.mobile-1.4.4/jquery.mobile-1.4.4.min.css">
        <link rel="stylesheet" href="css/jquery.mobile-1.4.4/jquery.mobile.structure-1.4.4.min.css">
        <link rel="stylesheet" href="css/jquery.mobile-1.4.4/jquery.mobile.inline-png-1.4.4.min.css">
        <link rel="stylesheet" href="css/jquery.mobile-1.4.4/jquery.mobile.inline-svg-1.4.4.min.css">
        <link rel="stylesheet" href="css/jquery.mobile-1.4.4/jquery.mobile.external-png-1.4.4.min.css">
        <!-- Choix du thème -->
        <link rel="stylesheet" href="css/bootstrap/bootstrap.min.css">
        <link rel="stylesheet" href="css/bootstrap/jquery.mobile.icons.min.css">
        <!-- JavaScript -->
        <script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>
        <script type="text/javascript" src="js/jquery.mobile-1.4.4.min.js"></script>
        <script type="text/javascript" src="js/datebox/jqm-datebox.core.js"></script>
        <script type="text/javascript" src="js/datebox/jqm-datebox.mode.datebox.js"></script>
        <title></title>
    </head>
    <body>
            <?php
            session_start();
            // Montrer les erreurs
            /*ini_set('display_errors', 1);
            ini_set('display_startup_errors', 1);
            error_reporting(-1);*/
            require_once '../controller/ClasseManager.php';
            include_once '../model/config.php';

            $manager = new ClasseManager($bdd);
            $list = $manager->getListClasse();
            ?>
            <div data-role="page">
                <?php
                    $prevlink = 'examen.php';
                    $headerText = 'Choisissez votre classe';
                    include 'includes/header.php';
                ?>
                <!--
                <div data-role="header" data-theme="e" data-position="fixed">
                    <a href="#" class="ui-btn ui-btn-left ui-btn-icon-left ui-corner-all ui-shadow ui-icon-arrow-l"> Previous</a>
                    <h1> Choisissez votre classe</h1>
                    <a href="accueil.php" class="ui-btn ui-btn-right ui-btn-icon-right ui-corner-all ui-shadow ui-icon-home"> Home</a>
                </div>
                -->
                <div data-role="content"> 
                    <form action="choixExamen.php" method="post">
                        <select data-native-menu="false" name="classe">
                            <?php
                            foreach ($list as $classe) {
                                $idClasse = $classe->getIdClasse();
                                $libelle = $classe->getLibelleClasse();
                                echo'<option value=' . $idClasse . '>' . $libelle . '</option>';
                            }
                            ?>

                        </select>

                        <button  data-transition="flip" id="submit" class="ui-btn ui-btn-b ui-btn-corner-all" >Valider</button>

                    </form>
                </div>

                <div data-role="footer" data-theme="e" data-position="fixed" >
                    <h1> &copy INSA TOULOUSE</h1>
                </div>
            </div>




    </body>
</html>
